import ctypes
import _pyrcswitch

def init(pin):
	_pyrcswitch.init(int(pin))

def switchOn(systemCode, unitCode):
	_pyrcswitch.switchOn(str(systemCode), int(unitCode))

def switchOff(systemCode, unitCode):
	_pyrcswitch.switchOff(str(systemCode), int(unitCode))


if __name__ == "__main__":
	import time
	init(16)
	switchOn("11111", 1)
	time.sleep(2)
	switchOff("11111",1)
	time.sleep(2)
	switchOn("11111", 1)
	time.sleep(2)
	switchOff("11111",1)
	

